<script setup>
import { getUserListAPI } from '@/api/'
import { ref } from 'vue'

// 获取用户列表
const userList = ref()
const getUserList = async () => {
  const data = await getUserListAPI()
  userList.value = data
}
getUserList()
</script>

<template>
  <el-table :data="userList" style="width: 100%">
    <!-- <el-table-column prop="photo" label="头像" /> -->
    <el-table-column prop="username" label="用户名" width="180" />
    <el-table-column prop="account" label="账号" width="180" />
    <el-table-column prop="identit" label="身份" />
    <el-table-column prop="phone" label="手机号" />
    <el-table-column prop="password" label="密码" />
  </el-table>
</template>
